package com.tanjie.blackbean.system.admin.model.role;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 角色表新增、修改参数
 *
 * @author tanjie
 * @since 2022-04-20
 */
@Data
@Schema(name = "RoleDTO", description = "角色表")
public class RoleDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键id")
    private String id;

    @NotBlank(message = "角色名称(name)不能为空")
    @Schema(description = "角色名称")
    private String name;

    @NotBlank(message = "角色编码(code)不能为空")
    @Schema(description = "角色编码")
    private String code;

    @Schema(description = "组织机构（部门）id")
    private String orgId;

    @Schema(description = "是否为公共角色")
    private Boolean isPublic;

    @Schema(description = "显示顺序")
    private Integer sort;

}
